package com.newgoldcurrency;

import android.app.Application;
import android.content.SharedPreferences;
import android.os.Build;

import androidx.annotation.RequiresApi;

import com.anythink.core.api.ATSDK;
import com.newgoldcurrency.bean.ShowBean;
import com.newgoldcurrency.bean.UserBean;
import com.newgoldcurrency.utils.sqlite.Operator;

public class App extends Application {
    public static App instance;
    public static SharedPreferences sp;
    public static UserBean userBean;
    public static boolean debug=true;
    public static String my_balance="0";
    public static Operator sql;
    public static ShowBean ShowBean;
    public static boolean hasGift=false;
    @RequiresApi(api = Build.VERSION_CODES.O)
    @Override
    public void onCreate(){
        super.onCreate();
        instance=this;
        sp=getSharedPreferences("data",MODE_PRIVATE);
        sql=new Operator(this);
        ATSDK.init(this,"a620dba7d9bb68","d2ee3a4c693f38bd089a634efdb45d5e");
    }
}